import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import Register from '../views/Auth/Register.vue'
import Login from '../views/Auth/Login.vue'
import User from '../views/Auth/User.vue'
import Edit from '../views/Auth/Edit.vue'
import Focus from '../views/Auth/Focus.vue'
import Follow from '../views/Auth/Follow.vue'
import Collect from '../views/Auth/Collect.vue'
import Comments from '@/views/Auth/Comments.vue'
import Search from '@/views/Auth/Search.vue'
import Post from '@/views/Auth/Post.vue'
import Programa from '@/views/Auth/Programa.vue'

Vue.use(VueRouter)

  const routes = [
    {
      path:'/',
      component:Home
    },
    {
      path:'/register',
      component:Register
    },
    //登录页
    {
      path:'/login',
      component:Login
    },
    //个人中心
    {
      path:'/user',
      component:User
    },
    //编辑页
    {
      path:'/edit',
      component:Edit
    },
    //我的关注
    {
      path:'/focus',
      component:Focus
    },
    // 我的跟帖
    {
      path:'/follow',
      component:Follow
    },
    // 我的收藏
    {
      path:'/collect',
      component:Collect
    },
    // 我的评论
    {
      path:'/comment',
      component:Comments
    },
    // 搜索
    {
      path:'/search',
      component:Search
    },
    // 文章详情
    {
      path:'/post',
      component:Post
    },
    // 栏目
    {
      path:'/programa',
      component:Programa
    }
]

const router = new VueRouter({
  routes
})

export default router
